﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;

namespace PublishNews.Models
{
    public class CategoryModel : BaseModel
    {
        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("subCategories")]
        public List<CategoryModel> SubCategories { get; set; }

        [JsonProperty("parentCategoryId")]
        public Guid? ParentCategoryId { get; set; }

        [JsonProperty("isDefault")]
        public bool IsDefault { get; set; }
    }
}